package com.zhiqiang.nativeplayer.frame;

import java.net.InetAddress;
import java.net.NetworkInterface;

/**
 * @author paul
 * @version 1.0
 * @date 19:16 2024/5/4
 * address pojo
 */
public class AddressPo {
    
    private String hostAddress;
    private InetAddress address;
    private NetworkInterface networkInterface;
    
    public AddressPo(String hostAddress, InetAddress address, NetworkInterface networkInterface) {
        this.hostAddress = hostAddress;
        this.address = address;
        this.networkInterface = networkInterface;
    }
    
    public String getHostAddress() {
        return hostAddress;
    }
    
    public InetAddress getAddress() {
        return address;
    }
    
    public NetworkInterface getNetworkInterface() {
        return networkInterface;
    }
    
    @Override
    public String toString() {
        return "AddressPo{" +
                "hostAddress='" + hostAddress + '\'' +
                ", address=" + address +
                ", networkInterface=" + networkInterface +
                '}';
    }
}
